<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<center>
		<form:form action="add" method="post" modelAttribute="hou"
			enctype="multipart/form-data">
			小区名称：<form:input path="name" />
			<form:errors path="name" cssStyle="color:red"></form:errors>
			<br><br>
			
			单元楼：<form:input path="building" />
			<form:errors path="building" cssStyle="color:red"></form:errors>
			<br><br>
			
			门牌号：<form:input path="number" />
			<form:errors path="number" cssStyle="color:red"></form:errors>
			<br><br>
			
			实景图：<input type="file" name="myfile">
			<br><br>
			
			出租状态：<form:select path="status">
				<form:option value="">==请选择==</form:option>
				<form:option value="0">待租</form:option>
				<form:option value="1">已租</form:option>
			</form:select>
			<br><br>
			
			装修情况：<form:select path="typ">
				<form:option value="">==请选择==</form:option>
				<form:options items="<%=com.yanshibo.house01_bean.bean.Types.values()%>"
					itemValue="name" itemLabel="val" />
			</form:select>
			<br><br>
			
			挂牌时间：<form:input path="listingTime" />
			<form:errors path="listingTime" cssStyle="color:red"></form:errors>
			<br><br>
			
			房屋类型：<form:select path="typeId">
				<form:option value="">==请选择==</form:option>
				<form:options items="${leis }"
					itemValue="id" itemLabel="name" />
			</form:select>
			<br><br>
			<form:button>添加</form:button>
		</form:form>
	</center>
</body>
</html>